#ifndef MYFLAGWIDGET_H
#define MYFLAGWIDGET_H

#include <QGLWidget>
#include <QTimer>
#include <QKeyEvent>
class MyFlagWidget : public QGLWidget
{
    Q_OBJECT
public:
    MyFlagWidget();
    ~MyFlagWidget();
protected:
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();
    int LoadGLTextures();

    void keyPressEvent(QKeyEvent *);
    GLuint mTexture[3];
protected slots:
    void updatePoints();
private:
    float mRotate_x;
    float mRotate_y;
    float mRotate_z;
    float mMove_z;

    QTimer mTimer;
    float mAngle;
};

#endif // MYFLAGWIDGET_H
